﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Eventable
{
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
    public sealed class RegisterEventsAttribute : Attribute
    {
        public string[] NameEvents { get; private set; }
        
        public RegisterEventsAttribute(params string[] EventName)
        {
            this.NameEvents = (EventName ?? new string[0])
                .Where(s=>!s.IsEmpty())
                .ToArray();
        }
    }
}
